package com.lancoo.znbkxx.teacher.widget;

import android.text.Html;
import android.widget.TextView;

import androidx.databinding.BindingAdapter;

/**
 * Created by Dadong on 2020/8/18
 * Describe:
 */
public class Constant {
    public static final boolean ANTI_ALIAS = true;

    public static final int DEFAULT_SIZE = 150;
    public static final int DEFAULT_START_ANGLE = 270;
    public static final int DEFAULT_SWEEP_ANGLE = 360;

    public static final int DEFAULT_ANIM_TIME = 1000;

    public static final int DEFAULT_MAX_VALUE = 100;
    public static final int DEFAULT_VALUE = 1000;

    public static final int DEFAULT_HINT_SIZE = 15;
    public static final int DEFAULT_UNIT_SIZE = 30;
    public static final int DEFAULT_VALUE_SIZE = 15;

    public static final int DEFAULT_ARC_WIDTH = 15;

    public static final int DEFAULT_WAVE_HEIGHT = 40;


    @BindingAdapter("html")
    public static void setHtml(TextView textView, String text){
        textView.setText(Html.fromHtml(text));
    }
}
